From ff4b2c0342ee20880077dd303feabf02ed6dd2d9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 15 May 2008 15:38:51 +0000 Subject: [PATCH] Kill r34826's unnecessary boolval() per yesterday's IRC discussion (thought vasilievv was going to revert himself, but guess not :D) --- includes/Autopromote.php | 2 +- includes/GlobalFunctions.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/Autopromote.php b/includes/Autopromote.php index 2a159fe941..bd13f55a0c 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -87,7 +87,7 @@ class Autopromote { if( User::isValidEmailAddr( $user->getEmail() ) ) { global $wgEmailAuthentication; if( $wgEmailAuthentication ) { - return boolval( $user->getEmailAuthenticationTimestamp() ); + return (bool)$user->getEmailAuthenticationTimestamp(); } else { return true; } diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5ee4cf09b9..276e51b8d9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2602,7 +2602,3 @@ function wfGenerateToken( $salt = '' ) { return md5( mt_rand( 0, 0x7fffffff ) . $salt ); } - -function boolval( $val ) { - return $val ? true : false; -} -- 2.20.1